﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using xbfengine;

namespace xbfconsoleclient
{
    class Program
    {
        static void WriteCharacter(char theCharacter)
        {
            Console.Write(theCharacter);
        }
        static char ReadCharacter()
        {
            return (char)Console.ReadKey(true).KeyChar;
        }
        static void Main(string[] args)
        {
            XbfMachine machine = new XbfMachine();
            machine.InputDelegate = ReadCharacter;
            machine.OutputDelegate = WriteCharacter;
            machine.LoadFromFile("examples/sandbox.xml");
            machine.Execute();
        }
    }
}
